/*****************************************************************************
 * Copyright (C) Stacy Curl. All rights reserved.                            *
 * ------------------------------------------------------------------------- *
 * The software in this package is published under the terms of the BSD      *
 * style license a copy of which has been included with this distribution in *
 * the LICENSE.txt file.                                                     *
 *****************************************************************************/
package picounit.features.verify;

import picounit.verify.DoubleArrayConstraints;
import picounit.verify.DoubleArrayConstraintsDeltaKnown;
import picounit.verify.ReasonCapturer;

public class DefaultDoubleArrayConstraints extends PrimativeArrayConstraints
	implements DoubleArrayConstraints {

	public DefaultDoubleArrayConstraints(Evaluator evaluator) {
		super(evaluator);
	}
	
	public DoubleArrayConstraintsDeltaKnown withDelta(double delta) {
		setDelta(new Double(delta));

		return this;
	}
	
	public ReasonCapturer isEqualTo(double ... equalTo) {
		return super.isEqualTo(equalTo);
	}
	
	public ReasonCapturer isDifferentTo(double ... differentTo) {
		return super.isDifferentTo(differentTo);
	}

	public ReasonCapturer contains(double contains) {
		return passes(constraintFactory.primativeArrayContains(contains, modifier()));
	}

	public ReasonCapturer doesNotContain(double doesNotContain) {
		return passes(constraintFactory.primativeArrayDoesNotContain(doesNotContain, modifier()));
	}
}
